package cn.yougou.exception;


import lombok.Data;

/**
 * 自定义异常处理类
 * @author kups
 * 2020-12-20
 * 用于抛出tokne与权限相关的错误
 *
 * code: 40001 ~ 41000
 */
@Data
public class AuthException extends RuntimeException {

    //自定义错误码
    private String code;
    private String msg;

    public AuthException(){}

    public AuthException(String code,String msg){
        super(msg);
        this.code = code;
        this.msg=msg;
    }
}
